public class ExceptionTest02 {
    public static void main(String[] args) {
        //Exception in thread "main" java.lang.ArithmeticException: / by zero
        //at ExceptionTest02.main(ExceptionTest02.java:3)
        //不会输出
        //System.out.println("helloworld");

        try{
            System.out.println(100/0);
        }catch(ArithmeticException e){
            System.out.println("算数异常！");
        }
        System.out.println("helloworld");

        //算数异常！
        //helloworld
    }
}
